﻿namespace AutoRevit.Utils;

/// <summary>
/// Autodesk.Revit.DB.Curve 工具
/// </summary>
public class CurveUtils
{
    /// <summary>
    /// 转换成模型线
    /// </summary>
    /// <param name="curves"></param>
    /// <param name="doc"></param>
    /// <param name="isFamilyCreate">是否族内创建</param>
    /// <param name="plane"></param>
    /// <returns></returns>
    public static IList<ModelCurve> ConvertToModelCurves(IEnumerable<Curve> curves, Document doc, bool isFamilyCreate = false, Plane? plane = null)
    {
        return curves.Select(c => c.ConvertToModelCurve(doc, isFamilyCreate, plane)).ToList();
    }
}
